package com.itheima.idea;

import java.util.Scanner;

public class A1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr= new int[5];
        for (int i = 0; i<arr.length;i++){
            System.out.println("请输入"+(i+1)+"个整数:");
            int score = sc.nextInt();
            if(score>=60&&score<=100){
                arr[i] = score;
            }else{
                i--;
            }
        }
        int sum = 0;
        for(int i = 0;i<arr.length;i++){
            sum +=arr[i];
        }
        System.out.println("sum"+sum);
    }
}
